package api

import (
	"Readme/api/handler"
	"github.com/gin-gonic/gin"
)

func Unter(r *gin.Engine) {
	user := r.Group("/user")
	{
		user.POST("/login", handler.Login)
		user.POST("/addArticle", handler.AddArticle)
		user.GET("/ws", handler.Chat)
		user.POST("/listArticle", handler.ListArticle)
		user.POST("/listFocu", handler.ListFocu)
		user.POST("/addfriend", handler.Addfriend)
		user.POST("/upload", handler.Upload)

	}
}
